/*
 * Random.cpp
 *
 *  Created on: 2 mars 2013
 *      Author: Raphaël
 */

#include "Random.h"

#include <random>

using namespace raph;
using namespace raph::type;

namespace raph
{

Random::Random() :
        m_seedVal(0)
    {
    m_rng.seed(m_seedVal);
    }

Random::~Random()
    {

    }

T_INT32 Random::nextInt32(const int32_t &n)
    {
    std::uniform_int_distribution<T_UINT32> d(0, n);
    return d(m_rng);
    }

} /* namespace rcRandom */
